import IScene from "./IScene";
import { SceneLogin } from "./login/SceneLogin";
import { SceneMain } from "./main/SceneMain";
import SceneManager from "./SceneManager";

export default class GameScenes {
    public static readonly SCENE_LOGIN: string = "login";
    public static readonly SCENE_MAIN: string = "main";

    public static login: SceneLogin;
    public static main: SceneMain;

    public static init(): void {

        GameScenes.login = new SceneLogin(GameScenes.SCENE_LOGIN);
        GameScenes.main = new SceneMain(GameScenes.SCENE_MAIN);

        SceneManager.ins.registerScene(GameScenes.login);
        SceneManager.ins.registerScene(GameScenes.main);
    }
    /**
     * 进入场景
     */
    public static enterScene(scene: IScene): void {
        SceneManager.ins.enterScene(scene);
    }
}